// ResourceManager.h: interface for the ResourceManager class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_RESOURCEMANAGER_H__F9E0E667_8626_475A_A974_AF361F8EEFBE__INCLUDED_)
#define AFX_RESOURCEMANAGER_H__F9E0E667_8626_475A_A974_AF361F8EEFBE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class AFX_EXT_CLASS ResourceManager  
{
public:
	static ResourceManager* Instance() { return g_ResourceManager ? g_ResourceManager :
	  g_ResourceManager = new ResourceManager; }
	static void DeleteInstance() { if ( g_ResourceManager ) delete g_ResourceManager, g_ResourceManager = 0; }

private:
	static ResourceManager* g_ResourceManager;

private:
	ResourceManager();
	virtual ~ResourceManager();

private:
	void Init();
	void Clear();
};

#endif // !defined(AFX_RESOURCEMANAGER_H__F9E0E667_8626_475A_A974_AF361F8EEFBE__INCLUDED_)
